#!/bin/bash

REALAPPYAML="app.yaml.real";
VERSIONFILE=".version";

V=$( cat "${VERSIONFILE}" );
# NV=$(( ${V} + 1 ));
NV=${V};
sed -e "s/APPVERSION/${NV}/" "${REALAPPYAML}" > app.yaml;
appcfg.py update ./ && rm -f app.yaml;
# echo "${NV}" > ${VERSIONFILE};
